<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  

  
  <title>个人对Utility-based System的理解 | NoGameNoLife</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="description" content="Utility-based System 的优势1. 给设计师带来了极大的自由度游戏设计师在设计NPC决策的效用模型时完全可以只在一张图表上设计效用曲线即可，然后用程序员用一个程序来描述这张图标，这样一个NPC的行为决策效用就设计好了，十分的简单。 Utility-based System 的缺点1. 效用曲线的设计需要一定的知识储备效用模型可以说是一种经验模型，这就要求设计师必须了解一些基本的效">
<meta property="og:type" content="article">
<meta property="og:title" content="个人对Utility-based System的理解">
<meta property="og:url" content="http://example.com/2020/12/29/%E4%B8%AA%E4%BA%BA%E5%AF%B9Utility-based-System%E7%90%86%E8%A7%A3/index.html">
<meta property="og:site_name" content="NoGameNoLife">
<meta property="og:description" content="Utility-based System 的优势1. 给设计师带来了极大的自由度游戏设计师在设计NPC决策的效用模型时完全可以只在一张图表上设计效用曲线即可，然后用程序员用一个程序来描述这张图标，这样一个NPC的行为决策效用就设计好了，十分的简单。 Utility-based System 的缺点1. 效用曲线的设计需要一定的知识储备效用模型可以说是一种经验模型，这就要求设计师必须了解一些基本的效">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2020-12-29T14:39:08.000Z">
<meta property="article:modified_time" content="2020-12-31T05:53:24.210Z">
<meta property="article:author" content="林文豪">
<meta property="article:tag" content="Artifical Intelligence">
<meta property="article:tag" content="Utility-based System">
<meta name="twitter:card" content="summary">
  
    <link rel="alternate" href="/atom.xml" title="NoGameNoLife" type="application/atom+xml">
  
  
    <link rel="icon" href="/favicon.png">
  
  
    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  
  
<link rel="stylesheet" href="/css/style.css">

<meta name="generator" content="Hexo 5.1.1"></head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/" id="logo">NoGameNoLife</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/">Home</a>
        
          <a class="main-nav-link" href="/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="搜索"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="http://example.com"></form>
      </div>
    </div>
  </div>
</header>
      <div class="outer">
        <section id="main"><article id="post-个人对Utility-based-System理解" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2020/12/29/%E4%B8%AA%E4%BA%BA%E5%AF%B9Utility-based-System%E7%90%86%E8%A7%A3/" class="article-date">
  <time datetime="2020-12-29T14:39:08.000Z" itemprop="datePublished">2020-12-29</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/categories/Artifical-Intelligence/">Artifical Intelligence</a>►<a class="article-category-link" href="/categories/Artifical-Intelligence/NPC-Behavior-Decision-making/">NPC Behavior Decision-making</a>►<a class="article-category-link" href="/categories/Artifical-Intelligence/NPC-Behavior-Decision-making/Utility-based-System/">Utility-based System</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="article-title" itemprop="name">
      个人对Utility-based System的理解
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h1 id="Utility-based-System-的优势"><a href="#Utility-based-System-的优势" class="headerlink" title="Utility-based System 的优势"></a>Utility-based System 的优势</h1><h3 id="1-给设计师带来了极大的自由度"><a href="#1-给设计师带来了极大的自由度" class="headerlink" title="1. 给设计师带来了极大的自由度"></a>1. 给设计师带来了极大的自由度</h3><p>游戏设计师在设计NPC决策的效用模型时完全可以只在一张图表上设计效用曲线即可，然后用程序员用一个程序来描述这张图标，这样一个NPC的行为决策效用就设计好了，十分的简单。</p>
<h1 id="Utility-based-System-的缺点"><a href="#Utility-based-System-的缺点" class="headerlink" title="Utility-based System 的缺点"></a>Utility-based System 的缺点</h1><h3 id="1-效用曲线的设计需要一定的知识储备"><a href="#1-效用曲线的设计需要一定的知识储备" class="headerlink" title="1. 效用曲线的设计需要一定的知识储备"></a>1. 效用曲线的设计需要一定的知识储备</h3><p>效用模型可以说是一种经验模型，这就要求设计师必须了解一些基本的效率曲线模型，基本的如：线性曲线、分段线性曲线、二次方程曲线、数理逻辑曲线等等。有时，设计师可能需要为特定的游戏设计特定的效用曲线，为保证效用曲线的效果达到标准，可能需要进行大量的测试。</p>
<h3 id="2-数值平衡问题"><a href="#2-数值平衡问题" class="headerlink" title="2. 数值平衡问题"></a>2. 数值平衡问题</h3><p>但凡跟数值打交道的算法都需要经过大量的测试，效用系统的表现当让也需要大量的测试。</p>
<h1 id="个人理解"><a href="#个人理解" class="headerlink" title="个人理解"></a>个人理解</h1><ul>
<li>效用模型很好的提高了游戏设计师的自由度，效用模型的提出就是为了避免提前确定标准的常规系统，比如在GOAP架构中选择Action的标准是每个提前设计好的Action的Cost。我们可以用一个算法结合游戏中的动态数据计算出每个Action的Cost，这样的话，相比提前设计的Cost，算法计算的Cost更具有随机性和实时性。</li>
<li>但是另一方面，效用模型虽然使用算法来计算效用，但是最后的标准仍是提前设计好的，这样做一定程度上提高的随机性，但是做的并不完全。想要有良好的随机性就不可以在游戏设计中使用固定的数值，现阶段我认为比较好的思路是：动态数据-&gt;算法-&gt;效用-&gt;行为。其中，算法只应该与游戏中的动态数据打交道，比如玩家当前的生命值、移动速度、与敌人的距离等等。</li>
</ul>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://example.com/2020/12/29/%E4%B8%AA%E4%BA%BA%E5%AF%B9Utility-based-System%E7%90%86%E8%A7%A3/" data-id="ckjcfor5a00000sdl5irzb0hq" class="article-share-link">分享</a>
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Artifical-Intelligence/" rel="tag">Artifical Intelligence</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Utility-based-System/" rel="tag">Utility-based System</a></li></ul>

    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/2021/01/30/%E5%AD%A6%E4%B9%A0Shader%E5%85%A5%E9%97%A8%E7%B2%BE%E8%A6%81%E7%9A%84%E8%AE%B0%E5%BD%95/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Newer</strong>
      <div class="article-nav-title">
        
          学习Shader入门精要的记录
        
      </div>
    </a>
  
  
    <a href="/2020/12/28/%E4%B8%AA%E4%BA%BA%E5%AF%B9GOAP%E7%9A%84%E7%90%86%E8%A7%A3/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Older</strong>
      <div class="article-nav-title">个人对GOAP的理解</div>
    </a>
  
</nav>

  
</article>

</section>
        
          <aside id="sidebar">
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">分类</h3>
    <div class="widget">
      <ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/Shader/">-Shader</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Artifical-Intelligence/">Artifical Intelligence</a><ul class="category-list-child"><li class="category-list-item"><a class="category-list-link" href="/categories/Artifical-Intelligence/NPC-Behavior-Decision-making/">NPC Behavior Decision-making</a><ul class="category-list-child"><li class="category-list-item"><a class="category-list-link" href="/categories/Artifical-Intelligence/NPC-Behavior-Decision-making/GOAP/">GOAP</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Artifical-Intelligence/NPC-Behavior-Decision-making/Utility-based-System/">Utility-based System</a></li></ul></li></ul></li><li class="category-list-item"><a class="category-list-link" href="/categories/Shader/">Shader</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Unity-Mesh/">Unity-Mesh</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Unity%E5%9F%BA%E7%A1%80/">Unity基础</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">标签</h3>
    <div class="widget">
      <ul class="tag-list" itemprop="keywords"><li class="tag-list-item"><a class="tag-list-link" href="/tags/Shader/" rel="tag">-Shader</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/2D%E7%9B%B8%E6%9C%BA%E8%AE%BE%E7%BD%AE/" rel="tag">2D相机设置</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Artifical-Intelligence/" rel="tag">Artifical Intelligence</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/GOAP/" rel="tag">GOAP</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Unity-Mesh/" rel="tag">Unity-Mesh</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Utility-based-System/" rel="tag">Utility-based System</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E2%80%94-Shader/" rel="tag">— Shader</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">标签云</h3>
    <div class="widget tagcloud">
      <a href="/tags/Shader/" style="font-size: 10px;">-Shader</a> <a href="/tags/2D%E7%9B%B8%E6%9C%BA%E8%AE%BE%E7%BD%AE/" style="font-size: 10px;">2D相机设置</a> <a href="/tags/Artifical-Intelligence/" style="font-size: 20px;">Artifical Intelligence</a> <a href="/tags/GOAP/" style="font-size: 15px;">GOAP</a> <a href="/tags/Unity-Mesh/" style="font-size: 10px;">Unity-Mesh</a> <a href="/tags/Utility-based-System/" style="font-size: 10px;">Utility-based System</a> <a href="/tags/%E2%80%94-Shader/" style="font-size: 10px;">— Shader</a>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">归档</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/02/">二月 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/01/">一月 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/12/">十二月 2020</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">最新文章</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2021/02/24/Unity-Mesh-%E7%BB%98%E5%88%B6%E6%AD%A3%E6%96%B9%E4%BD%93/">Unity-Mesh-绘制正方体</a>
          </li>
        
          <li>
            <a href="/2021/02/23/Unity%E5%9F%BA%E7%A1%80-2D%E7%9B%B8%E6%9C%BA%E6%B8%B2%E6%9F%93%E5%88%B0RT%E7%9A%84%E7%9B%B8%E5%85%B3%E8%AE%BE%E7%BD%AE/">Unity基础-2D相机渲染到RT的相关设置</a>
          </li>
        
          <li>
            <a href="/2021/02/22/Shader-2D-%E6%B5%81%E6%B0%B4%E6%95%88%E6%9E%9C/">Shader-2D-流水效果</a>
          </li>
        
          <li>
            <a href="/2021/01/30/%E5%AD%A6%E4%B9%A0Shader%E5%85%A5%E9%97%A8%E7%B2%BE%E8%A6%81%E7%9A%84%E8%AE%B0%E5%BD%95/">学习Shader入门精要的记录</a>
          </li>
        
          <li>
            <a href="/2020/12/29/%E4%B8%AA%E4%BA%BA%E5%AF%B9Utility-based-System%E7%90%86%E8%A7%A3/">个人对Utility-based System的理解</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      &copy; 2021 林文豪<br>
      Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>
    </div>
    <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>


  
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css">

  
<script src="/fancybox/jquery.fancybox.pack.js"></script>




<script src="/js/script.js"></script>




  </div>
</body>
</html>